package com.cm.creational.factory.abstractf;

import com.cm.creational.factory.Book;
import com.cm.creational.factory.IPhone;
import com.cm.creational.factory.MacBook;
import com.cm.creational.factory.Phone;

/**
 * @author cm.g
 * @date 2023/6/12 15:11
 */
public class AppleFactory implements Factory{
    @Override
    public Phone createPhone() {
        return new IPhone();
    }

    @Override
    public Book createBook() {
        return new MacBook();
    }
}
